package com.usdt.system.service.impl.cp;

import java.util.List;

import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.usdt.system.domain.cp.ClueFollowUpEntity;
import com.usdt.system.domain.cp.VisitRecordEntity;
import com.usdt.system.mapper.cp.VisitRecordMapper;
import com.usdt.system.service.cp.VisitRecordService;

/**
 * <p>
 * 到访-记录 服务实现类
 * </p>
 *
 * @author L
 * @since 2025-10-05
 */
@Service
public class VisitRecordServiceImpl extends ServiceImpl<VisitRecordMapper, VisitRecordEntity> implements VisitRecordService {

	@Override
	public List<VisitRecordEntity> getVisitRecordByVisitId(Integer visitId) {
		QueryWrapper<VisitRecordEntity> query = new QueryWrapper<VisitRecordEntity>();
		query.eq("is_del", false).eq("visit_id", visitId).orderByDesc("id");
		
		return baseMapper.selectList(query);
	}

}
